package com.yf.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 用户实体
 * 表名 user
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Aug 21 10:46:07 CST 2018
 */
@Setter
@Getter
public class UserEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Long id;
    //等级ID
    private Long levelId;
    //名字
    private String name;
    //IMG-头像
    private String avatar;
    //性别
    private String sex;
    //手机号码
    private String phone;
    //密码
    private String password;
    //登录ID
    private String openId;
    //统一ID
    private String unionId;
    //支付ID
    private String payId;
    //上级ID
    private Long parentId;
    //描述
    private String info;
    //加入时间
    private Date joinTime;
    //升级时间
    private Date levelTime;
    //登录时间
    private Date loginTime;
    //ENUM-状态:'整顿','停用','激活'
    private Integer status;
    //我的二维码
    private String qrcode;
    //
    private String path;

    private String code;


    public UserEntity() {
    }

    public UserEntity(Long levelId, String name, String avatar, String sex, String openId, String unionId , Long parentId, Date joinTime, Date levelTime, Date loginTime, Integer status,String path) {
        this.levelId = levelId;
        this.name = name;
        this.avatar = avatar;
        this.sex = sex;
        this.openId = openId;
        this.unionId = unionId;
        this.parentId = parentId;
        this.joinTime = joinTime;
        this.levelTime = levelTime;
        this.loginTime = loginTime;
        this.status = status;
    }

    public UserEntity(String name, String phone, String password) {
        this.name = name;
        this.phone = phone;
        this.password = password;
    }
}
